]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ShellOverflowList: Implement pick
authorColin Walters <walters@verbum.org>
Sat, 4 Jul 2009 23:50:55 +0000 (19:50 -0400)
committerColin Walters <walters@verbum.org>
Sat, 4 Jul 2009 23:50:55 +0000 (19:50 -0400)
This gives us the correct event behavior.

src/shell-overflow-list.c

index c63660f9293f9f9ff766f1624499eda246e28e7b..b1f418e192f0690d87dd2c6b7741504621390f3b 100644 (file)
@@ -169,6 +169,21 @@ shell_overflow_list_paint (ClutterActor *actor)
   g_list_free (children);
 }
 
+static void
+shell_overflow_list_pick (ClutterActor       *actor,
+                          const ClutterColor *color)
+{
+  ShellOverflowList *self = SHELL_OVERFLOW_LIST (actor);
+  ShellOverflowListPrivate *priv = self->priv;
+  GList *children, *iter;
+  int i;
+
+  (CLUTTER_ACTOR_CLASS (g_type_class_peek (clutter_actor_get_type ())))->pick (actor, color);
+
+  shell_overflow_list_paint (self);
+}
+
+
 static void
 shell_overflow_list_get_preferred_height (ClutterActor *actor,
                                           gfloat for_width,
@@ -256,6 +271,7 @@ shell_overflow_list_class_init (ShellOverflowListClass *klass)
   actor_class->get_preferred_height = shell_overflow_list_get_preferred_height;
   actor_class->allocate = shell_overflow_list_allocate;
   actor_class->paint = shell_overflow_list_paint;
+  actor_class->pick = shell_overflow_list_pick;
 
   g_object_class_install_property (gobject_class,
                                    PROP_SPACING,